import { http } from '@/utils/request'

export const topicApi = {
  getAllTopic: () => {
    return http.get('/topic/list')
  },
  

  addOneTopic: (formData) => {
    return http.post('/topic/add', formData)
  },
  
  deleteOneTopic: (id) => {
    return http.get(`/topic/deleted?id=${id}`)
  },
  

}